﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using Job.Web.Framework;
using Job.Entity;
using Job.Logic.BaseContent;

namespace Job.Web
{
    public partial class Information : BasePage
    {
        private int contentId
        {
            get { return myR["content"].IntValue; }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                LoadData();
            }
        }

        private void LoadData()
        {
            if (contentId > 0)
            {
                JobBaseContent content = new BaseContentLogic().GetContentByContentId(contentId);
                if (content != null && content.Content != null && content.Content.Length > 0)
                {
                    this.contentTD.InnerHtml = Server.HtmlDecode(Functions.ByteArrayToString(content.Content));
                    return;
                }
            }

            this.contentTD.InnerHtml = "<font size=\"18\">系统正在建设中...</font>";
        }
    }
}
